<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
  <form method="post">
      {% csrf_token %}
      账号：<input type="text" name="username"><br>
      密码：<input type="password" name="password"><br>
      角色：<input type="radio" name="role" value="1">学生
           <input type="radio" name="role" value="2">老师<br>
      <input type="submit" value="登录"><br>
      {{ error }}
  </form>
</body>
</html>